import {useTokenStore} from "@/Stores/token";
import request from '@/utils/request.js'
export const saleListService =(params)=>{
    const tokenStore = useTokenStore();
    return request.get('/sale',{params:params})
}
export  const updateSaleService = (ProductModel)=>{
    return request.put('/sale',ProductModel)
}
export  const AddSaleService = (ProductModel)=>{
    return request.post('/sale',ProductModel,)
}
export const deleteSaleService = (id)=>{
    return request.delete('/sale?id='+id)
}
export const returnSaleService = (params) => {
    return request.post('/sale/return1', params);
}
